import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'
import ElementPlus from "element-plus";
import "./assets/style/base/reset.css";
import "./assets/style/base/element.scss";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'


const app = createApp(App)

for (const key in ElementPlusIconsVue) {
    app.component(key, ElementPlusIconsVue[key])
  }  

app.use(createPinia().use(piniaPluginPersistedstate))
app.use(router)
app.use(ElementPlus, {
  locale: zhCn,
});

app.mount('#app')

